package main;

import java.util.Map;

import com.lmax.disruptor.EventHandler;

public class PrintHandler implements EventHandler<Map<String,String>> {

	private String prefix;

	public void onEvent(Map<String, String> event, long sequence, boolean endOfBatch) throws Exception {
		Thread.sleep(500);
		System.out.println(prefix + " " + event.get("v"));
	}

	public String getPrefix() {
		return prefix;
	}

	public void setPrefix(String prefix) {
		this.prefix = prefix;
	}

}
